#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>
#include <signal.h>
#include <sys/types.h>
#include <sys/shm.h>

int main(void)
{

	int shmid;
	char str[128];
	shmid = shmget(IPC_PRIVATE,128,0666);
	if(shmid < 0)
	{
		printf("create share memory failed\n");
		return -1;
	}
	printf("create share memory success\n");
	system("ipcs -m");

	return EXIT_SUCCESS;
}

